import { RouteRecordRaw } from 'vue-router';

export default {
  name: 'member',
  path: '/member',
  component: () => import('@/layout/index.vue'),
  redirect: '/member/list',
  meta: {
    title: 'menus.mMember',
    icon: 'el-icon-user',
    sort: 1,
    roles: 'JadeSoft-Agent'
  },
  children: [
    {
      name: 'member_list',
      path: '/member/list',
      component: () => import('@/views/member/list/index.vue'),
      meta: {
        title: 'menus.mMemberList',
        icon: 'el-icon-more'
      }
    },
    {
      name: 'member_money_edit',
      path: '/member/money-edit',
      component: () => import('@/views/member/money-edit/index.vue'),
      meta: {
        title: 'menus.mMemberMoneyEdit',
        icon: 'el-icon-more'
      }
    },
    {
      name: 'member_rebate',
      path: '/member/rebate',
      component: () => import('@/views/member/rebate/index.vue'),
      meta: {
        title: 'menus.mMemberRebate',
        icon: 'el-icon-more'
      }
    }
  ]
} as RouteRecordRaw;
